//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * contactPersonModel
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.contactperson.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "CONTACT_PERSON")
public class ContactPerson implements java.io.Serializable {

	/**
	 * 
	 */
	private Long id ;
	/**
	 * 
	 */
	private String firstName ;
	/**
	 * 
	 */
	private String lastName ;
	/**
	 * 
	 */
	private String address ;
	/**
	 * 
	 */
	private String telephone ;
	/**
	 * 
	 */
	private String email ;
	/**
	 * 
	 */
	private String post ;
	/**
	 * 
	 */
	private String createTime ;
	/**
	 * 
	 */
	private Long userId ;
	/**
	 * 
	 */
	private Long packageId ;

/** default constructor */
	public ContactPerson() {
	}

	/** minimal constructor */
   public ContactPerson(Long id) {
             this.id = id;
                                                            	
 } 
	

    /**
	 * 获取
	 * @return
	 */
    @Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, scale = 0)
	public Long getId() {
		return this.id;
	}
	
	/**
	 * 设置
	 * @param id
	 */	
	public void setId(Long id) {
		this.id = id;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "first_name", length = 100)
	public String getFirstName() {
		return firstName;
	}
	
	/**
	 * 设置
	 * @param firstName
	 */	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "last_name", length = 100)
	public String getLastName() {
		return lastName;
	}
	
	/**
	 * 设置
	 * @param lastName
	 */	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "address", length = 200)
	public String getAddress() {
		return address;
	}
	
	/**
	 * 设置
	 * @param address
	 */	
	public void setAddress(String address) {
		this.address = address;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "telephone", length = 50)
	public String getTelephone() {
		return telephone;
	}
	
	/**
	 * 设置
	 * @param telephone
	 */	
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "email", length = 100)
	public String getEmail() {
		return email;
	}
	
	/**
	 * 设置
	 * @param email
	 */	
	public void setEmail(String email) {
		this.email = email;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "post", length = 100)
	public String getPost() {
		return post;
	}
	
	/**
	 * 设置
	 * @param post
	 */	
	public void setPost(String post) {
		this.post = post;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "create_time", length = 19)
	public String getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置
	 * @param createTime
	 */	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "user_id", length = 32)
	public Long getUserId() {
		return userId;
	}
	
	/**
	 * 设置
	 * @param userId
	 */	
	public void setUserId(Long userId) {
		this.userId = userId;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "package_id", length = 32)
	public Long getPackageId() {
		return packageId;
	}
	
	/**
	 * 设置
	 * @param packageId
	 */	
	public void setPackageId(Long packageId) {
		this.packageId = packageId;
	}
}